import axios from 'axios'
 /* 获取用户当前信息储存在lockstore USER_INFO中 /account/payAnother/me?userId=1&payCompanyId=1634 */ 
export const paymany = params => {  //找人代付
    return axios({
      method: 'get',
      url:'/account/payAnother/other',//
      params
    })
  }
  /* 我的代付查询 */
  export const Mypaymany = params => {
    return axios({
      method: 'get',
      url:`/account/payAnother/me`,//
      params
    })
  }
  /* 添加代付 */
  export const addpaymany = data => {
    return axios({
      method: 'POST',
      url:`/account/payAnother`,// /account/payAnother/status
      data
    })
  }
  export const binding = params => { //绑定
    return axios({
      method: 'put',
      url:`/account/payAnother/status`,// /account/payAnother/status
      params
    })
  }
  /* 编辑 */
  export const edilr = params => { //编辑
    return axios({
      method: 'put',
      url:`/account/payAnother/company/name`,// /account/payAnother/status   // /account/payAnother/id/{id}
      params
    })
  }
  /* 删除 */
  export const delet = id => { //删除
    return axios({
      method: 'delete',
      url:`/account/payAnother/id/${id}`,   // /account/payAnother/id/{id}  
      
    })
  }
